import request from '@/utils/request';

export async function getWorkstationByPage (params: any) {
    return request('/api/basicData/getWorkstationByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addWorkstation (params: any) {
    return request('/api/basicData/addWorkstation', {
    method: 'POST',
    data: params,
  });
}

export async function updateWorkstation (params: any) {
    return request('/api/basicData/updateWorkstation', {
    method: 'POST',
    data: params,
  });
}

export async function delWorkstation (params: any) {
    return request('/api/basicData/delWorkstation', {
    method: 'POST',
    data: params,
  });
}


export async function exportWorkstation(params: any) {
    return request('/api/basicData/exportWorkstation', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getWorkstationByPage, addWorkstation, updateWorkstation, delWorkstation, exportWorkstation }
